<?php



require_once 'include/inc.config.php';
require_once 'load_wact.php';
require_once WACT_ROOT . 'controller/pathinfo.inc.php';
@session_start();




$Front = new PathInfoDispatchController();
$Front->addChild('index',   new Handle(APP_CTRL_ROOT . 'pub/leagues/index.page.php|LeaguesIndexPage'));
$Front->addChild('printteaser',   new Handle(APP_CTRL_ROOT . 'pub/leagues/print.page.php|LeaguesPrintTeaserPage'));
$Front->addChild('printdetail',   new Handle(APP_CTRL_ROOT . 'pub/leagues/print.page.php|LeaguesPrintDetailPage'));
$Front->addChild('details',   new Handle(APP_CTRL_ROOT . 'pub/leagues/detail.page.php|LeaguesDetailPage'));

$Front->addChild('submit',   new Handle(APP_CTRL_ROOT . 'pub/leagues/submit.page.php|LeaguesSubmitPage'));

$Front->setDefaultChild('index');

//if unknown page
/*$name=$Front->_getDispatchName(new Request());
if(!$Front->hasChild($name)){
	$Front->setDefaultView(new Handle(APP_ROOT . 'view/common/layout.view.php|NotFoundView', array('/common/notfound.html')));
}
*/

$Front->start();

?>
